package com.campus.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.math.BigDecimal;

/**
*
* @author xr
* @since 2023-12-359 16:32:04
*/
@Data
@TableName("tb_user")
public class User{
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String userName;
    private String password;
    private String telephone;
    private Integer sex;
    private Integer status;
    private String avatar;
    private Integer isSuper;
    @JsonSerialize(using= ToStringSerializer.class)
    private BigDecimal accountMoney;
}
